CC=g++ -std=c++11

CXXFLAGS:= $(shell pkg-config --cflags opencv)

LDLIBS:= $(shell pkg-config --libs opencv)

fakeshelves: main.o tinyxml2.o
	$(CC) -o fakeshelves main.o tinyxml2.o $(CXXFLAGS) $(LDLIBS)

main.o: main.cpp tinyxml2.h
	$(CC) -c main.cpp  $(CXXFLAGS)

tinyxml2.o: tinyxml2.cpp tinyxml2.h
	$(CC) -c tinyxml2.cpp  $(CXXFLAGS)


clean:
	rm -f *.o